package com.heima.model.comment.dtos;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("保存评论的dto对象")
public class CommentSaveDto implements Serializable {

    @ApiModelProperty("文章Id")
    @NotBlank(message = "文章Id不能为空")
    private Long articleId;

    @ApiModelProperty("评论内容")
    private String content;


}
